Skip to content

Add ASUS Zenbook A16 support to shared linux-omarchy 7.3-5 - #1426

Closed
FixItFoundry wants to merge 1 commit into
omacom:masterfrom
FixItFoundry:a16/01-kernel-20261021
Closed

FixItFoundry wants to merge 1 commit into
omacom:masterfrom
FixItFoundry:a16/01-kernel-20261021

Conversation

@FixItFoundry

@FixItFoundry FixItFoundry commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Rebase the A16 changes after #1706 as 7.3-5. Remove shared patch overlaps and retain the A16 hardware fixes, DSP ABI, source verification and corresponding-source package. The support-package recipe stays separate.

All 360 patches apply cleanly. Signed-source replay, configuration checks, both A16 and Surface DTBs, 61 native AArch64 objects and packaging regressions pass. Details are in A16-VALIDATION.md.

Full split-package builds and fresh A16 hardware validation remain pending. Earlier hardware results apply to 7.2.8-24. Camera and sleep remain unvalidated.

@birkskyum

Copy link
Copy Markdown
Contributor

Best to wait till #1417 is merged, and rebase.

@FixItFoundry

Copy link
Copy Markdown
Contributor Author

That works. Standing by for that merge.

@birkskyum

Copy link
Copy Markdown
Contributor

Linux 7.3 merged

@FixItFoundry
FixItFoundry force-pushed the a16/01-kernel-20261021 branch from 4c4570e to 026ad94 Compare October 27, 2026 13:55
@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[High impact] No actionable defect was established; the documented native-build and hardware checks remain pending.

Summary

Adds A16 hardware changes to the shared ARM kernel and advances the package to 7.3-5.

  • The shared ARM64 kernel carries the remaining Zenbook A16 hardware changes.
  • SoundWire buses stay available while A16 codec probes are deferred.
  • Battery uevents continue when a property is temporarily unavailable.
  • AArch64 kernel builds include matching source and DSP ABI details.

The previous-review ancestry and merge-base checks did not pass, so this review used the full PR diff. No previous review threads were supplied.

Reviews (2) · Last reviewed commit: "Rebase A16 kernel fixes after Surface La..." · Reviewed by Greptile

@FixItFoundry FixItFoundry changed the title Add ASUS Zenbook A16 support to shared linux-omarchy 7.2.8-24 Add ASUS Zenbook A16 support to shared linux-omarchy 7.3-4 Oct 27, 2026
@jdvmi00

jdvmi00 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Heads-up from the Surface Laptop 8 side: #1706 adds the SL8 to this recipe as 2300-2434 (also pkgrel 4), and it overlaps with this PR in two places. Both use 2300, 2301 and 2303. And five upstream patches are in both: Kandagatla's lpass-wsa-macro v2.5 Compander1 addresses, the Glymur USB clock/power/bandwidth votes, Bjorn's two v8 eDP PHY patches, and your LINK_RATE_SET fix, which I carry under your name, linked to your tree. With --fuzz=0 the second one to land will stop on those. If mine goes in first, dropping the five from your combined 2300 and renumbering should be enough; if yours goes first, I'll rebase onto it. Your prepare() tree-hash check will also need regenerating whenever another PR adds a patch to this recipe.

@FixItFoundry

Copy link
Copy Markdown
Contributor Author

Heads-up from the Surface Laptop 8 side: #1706 adds the SL8 to this recipe as 2300-2434 (also pkgrel 4), and it overlaps with this PR in two places. Both use 2300, 2301 and 2303. And five upstream patches are in both: Kandagatla's lpass-wsa-macro v2.5 Compander1 addresses, the Glymur USB clock/power/bandwidth votes, Bjorn's two v8 eDP PHY patches, and your LINK_RATE_SET fix, which I carry under your name, linked to your tree. With --fuzz=0 the second one to land will stop on those. If mine goes in first, dropping the five from your combined 2300 and renumbering should be enough; if yours goes first, I'll rebase onto it. Your prepare() tree-hash check will also need regenerating whenever another PR adds a patch to this recipe.

Hey Jim, thanks for the heads up! I'll keep an eye out whether #1706 goes in first and will rebase if needed.

@birkskyum

birkskyum commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

@FixItFoundry , #1706 went in, so this needs rebase now

@FixItFoundry
FixItFoundry force-pushed the a16/01-kernel-20261021 branch from 026ad94 to bfd0cc5 Compare October 28, 2026 00:28
@FixItFoundry FixItFoundry changed the title Add ASUS Zenbook A16 support to shared linux-omarchy 7.3-4 Add ASUS Zenbook A16 support to shared linux-omarchy 7.3-5 Oct 28, 2026
@ryanrhughes

Copy link
Copy Markdown
Collaborator

This needs quite a lot of work in order to go in. I'm going to close this PR and request that a new one is opened once these items are resolved since it's likely this will just become a rolling merge conflict.

Beyond the notes below, I'm also noticing a lot of leftover excess items such as A16-README.md, regression testing tools, and other miscellaneous pieces that really aren't a part of the kernel code. Those should not be included and maintained elsewhere.

Verdict: don't merge #1426 as-is. Most of the ~10.5k-line squashed A16 patch changes shared Qualcomm drivers, not A16-only code. Several of those changes add failure paths that every Snapdragon laptop this kernel ships to would hit. The author says the only hardware testing was on an A16 running the older 7.2.8 build; nothing has been run on 7.3-5 or on any other machine.

How I checked: I downloaded Linux 7.3, applied all 360 patches with zero fuzz, and the result matches the PR's source_tree hash (035c9c08). The PR's a16-regression.py passes. Six agents each did a deep pass on one subsystem, and I re-checked the top findings against the code myself.

FINAL REGRESSIONS FOUND: 15

High, on all Snapdragon machines

  • DP crash risk on link-training failure (dp_display.c, msm_dp_display_prepare_link). When on_link() fails it has already switched the link clocks off. The new error path then calls off_link(), which reads link registers with no clock guard. An unclocked access like that usually aborts the CPU. A flaky dock or an unplug during training is enough to trigger it.
  • SoundWire link timeouts are now fatal (soundwire/[qcom.c](https://github.com/home/ryan/.t3/worktrees/omarchy-pkgs/t3-19d2a29f/soundwire/qcom.c)). A link-status timeout that used to be harmless now fails probe with -ETIMEDOUT, which is not retried, so that controller's audio is gone until reboot.
  • SoundWire bus clash now forces a full reset. If any slave on that bus doesn't come back, every stream on the controller is refused, including streams for healthy slaves. On the X13s-class Surface (arcata) and Microsoft blackrock, swr0 has no slaves, so the first clash always fails recovery.

Medium

  • SoundWire boot delay. Probe waits up to 1 s per controller for every device-tree slave, under a global mutex, so controllers wait in series. That ordering is guaranteed on wcd938x machines (T14s, X13s, Zenbook A14, Surface Laptop 7 and others).
  • Spurious DP unplug/replug (pmic_glink_altmode). If a second notification arrives during the firmware ack round trip, the worker reports "disconnected" before reporting "connected" again.
  • Altmode drops events on switch errors. An orientation-switch error now skips the mux and retimer setup, but the event is still acknowledged, so firmware never resends it.
  • Camera I2C clock change. The camera I2C controller clock goes from about 19.2 to 37.5 MHz on the X13s, Yoga Slim 7x and Surface Laptop 7. This matches upstream but wasn't tested here, and the upstream follow-up fix ed404d9fd36b is missing.
  • GPU can fail to bind. Stricter GMU power-level parsing now aborts the GPU bind instead of logging. Nobody has checked it against the X1E/sc8280xp firmware's RPMh level tables.

Low

  • A failed GPU submit leaves a gap in the fence numbers, which can trigger a false hang and GPU reset.
  • A "not for upstream" glymur_pci_skip debug knob is added to the PCI core. It does nothing at its default.
  • 2503 swallows every -EAGAIN from battery property reads, not just the startup case its comment describes.
  • Three plausible SoundWire bugs: a use-after-free on unbind, a deadlock between opening a PCM stream and recovery, and a blocking call inside a wait_event condition.

Checked and clean: the global PHY core, USB core, property.h, EFI and TPM changes are behavior-neutral, N1x included. The rpmh refcount rework, ath12k, btqca, audioreach/q6apm and the new camera PHY driver (identical to upstream) are fine. The glymur.dtsi dma-coherent change is already upstream. The EC driver only binds on the A16.

Packaging concerns (outside the kernel template, but these matter for the shared package)

  • The pins will break every future kernel PR. prepare() checks a hard-coded source-tree hash. CI also pins the version, the patch count and specific patch names, and a16-regression.py regex-matches upstream blk-mq, SoundWire and QMP internals. Any later change to the aarch64 kernel (a new patch, a version bump, the next Linux release) fails until someone regenerates the A16 files. The aarch64 recipe has changed in five commits since the 7.3 move alone.
  • a16.config changes two settings for every machine: PCI_PWRCTRL_PWRSEQ and POWER_SEQUENCING_QCOM_WCN become built-in instead of modules.
  • A new linux-omarchy-aarch64-source split package would ship the full kernel tarball and every patch to the repo on each release. That's a policy decision for us, not a bug.
  • Smaller device-tree items:
    • The A16 dtb fails dtbs_check on usb_2_qmpphy.
    • The comment on the A16's SoCCP firmware-name removal is wrong; if SoCCP crashes and reloads, it would look for firmware that isn't there.
    • glymur-crd.dtsi gains a duplicate override.
    • zenbook-a16-hibernation.config is never used.
  • No authorship on the squashed patch. It has no From:/Signed-off-by, and the EC driver differs from Konrad Dybcio's upstream version without saying so.

Main false positives eliminated: the PHY core's wider lock scope, the usb_get_status errno change, the rpmh refcount UAF paths, the CCI "cci" clock lookup on existing device trees, the SoundWire page cache, and bus.c returning the first clock-stop error.

FINAL TOKENS USED: about 1.35M (about 1.25M across the six agents, plus this session).
Assisted-by: Claude Code:claude-opus-5-5

ryanrhughes pushed a commit that referenced this pull request Oct 30, 2026
The A16's device tree in 7.3 describes little more than the SoC. This completes it (EC, Wi-Fi power sequencing, eDP supplies, Type-C host mode, RTC, SCMI polling, cooling), adds Konrad Dybcio's EC driver, which 7.4 carries, power-sequences the QCC2072, and keeps EFI variable locking and pmic_glink working on this firmware. It is the part of #1426 the laptop needs, without that pull request's changes to SoundWire, DP, the GPU, PCI power management, ath12k and the camera.

Co-authored-by: David Heinemeier Hansson <david@hey.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants